import request from '@/utils/request'

export function searchLike(name) {
    return request({
        url: '/taxi/search/like',
        method: 'post',
        data: name
    })
}

export function searchHistory(name) {
    return request({
        url: '/taxi/searchHistory/' + name,
        method: 'get',
    })
}

export function addHistory(id) {
    return request({
        url: '/taxi/addHistory',
        method: 'post',
        data: {mapId:id}
    })
}

export function deleteHistory() {
    return request({
        url: '/taxi/deleteHistory',
        method: 'delete'
    })
}


